﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:GameLogic_Logic="clr-namespace:GameLogic.Logic;assembly=GameLogic"
    xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
    x:Class="TestUi.Content.SingleCollisionGame"
    mc:Ignorable="d">

    <Grid
        x:Name="LayoutRoot" Width="400" Height="400">
    	<Grid.Background>
    		<RadialGradientBrush>
    			<GradientStop Color="#FF35437A"/>
    			<GradientStop Color="#FF0A0A0A" Offset="1"/>
    			<GradientStop Color="#FF2A2D2F"/>
    		</RadialGradientBrush>
    	</Grid.Background>
    	<i:Interaction.Behaviors>
    		<GameLogic_Logic:GameLoop/>
    	</i:Interaction.Behaviors>
        <Rectangle
            x:Name="_leftBorder"
            HorizontalAlignment="Left"
            Width="5" Fill="#FF86A3C2">
            <i:Interaction.Behaviors>
            	<GameLogic_Logic:StaticCollidableBehavior />
            </i:Interaction.Behaviors>
        </Rectangle>
        <Rectangle
            x:Name="_rightBorder"
            HorizontalAlignment="Right"
            Width="5" Fill="#FF86A3C2">
            <i:Interaction.Behaviors>
            	<GameLogic_Logic:StaticCollidableBehavior />
            </i:Interaction.Behaviors>
        </Rectangle>
        <Rectangle
            x:Name="_topBorder"
            VerticalAlignment="Top"
            Height="5" Fill="#FF86A3C2">
            <i:Interaction.Behaviors>
            	<GameLogic_Logic:StaticCollidableBehavior />
            </i:Interaction.Behaviors>
        </Rectangle>
        <Rectangle
            x:Name="_bottomBorder"
            VerticalAlignment="Bottom"
            Height="5" Fill="#FF86A3C2">
            <i:Interaction.Behaviors>
            	<GameLogic_Logic:StaticCollidableBehavior />
            </i:Interaction.Behaviors>
        </Rectangle>
        <Grid Margin="185">
        	<i:Interaction.Behaviors>
        		<GameLogic_Logic:MovingCollidableBehavior
        			AutoStart="True"
        			Direction="100"
        			Speed="2" CollisionType="Bounce" CollisionEnabled="True" />
        	</i:Interaction.Behaviors>
        	<Ellipse
        		Margin="0"
        		Width="30"
        		Height="30"
        		HorizontalAlignment="Center"
        		VerticalAlignment="Center">
        		<Ellipse.Fill>
        			<RadialGradientBrush>
        				<GradientStop Color="#FF1F57E2"/>
        				<GradientStop Color="#FF191668" Offset="1"/>
        			</RadialGradientBrush>
        		</Ellipse.Fill>
        	</Ellipse>
        	<Path Data="M26.329502,10.14679 C26.329502,15.393495 22.517378,12.193008 14.553724,11.796163 C7.658721,11.452571 -1.1189731,15.628744 -1.1189731,10.382039 C-1.1189731,5.135334 4.558363,0.10990278 12.058363,-0.4391897 C18.943495,-0.94326627 26.329502,4.900084 26.329502,10.14679 z" Margin="1.192,0.001,1.592,0" Stretch="Fill" Height="13.573" UseLayoutRounding="False" VerticalAlignment="Top" RenderTransformOrigin="0.346,-0.048">
        		<Path.Fill>
        			<RadialGradientBrush RadiusY="0.689" RadiusX="0.63" GradientOrigin="0.531,0.037">
        				<RadialGradientBrush.RelativeTransform>
        					<CompositeTransform CenterY="0.5" CenterX="0.5" Rotation="-14.096"/>
        				</RadialGradientBrush.RelativeTransform>
        				<GradientStop Color="White"/>
        				<GradientStop Color="#0CFFFFFF" Offset="1"/>
        				<GradientStop Color="#0CFFFFFF" Offset="0.671"/>
        			</RadialGradientBrush>
        		</Path.Fill>
        	</Path>
        </Grid>
    </Grid>
</UserControl>
